<template>
	<view class="container">
		<view class="withdraw-box">
			<view class="withdraw-title">立即提现</view>
			<view class="form-box">
				<view class="form-item">
					<view class="form-item-label">提现金额</view>
					<view class="item-input-box">
						<input class="item-input" />
					</view>
				</view>
				<view class="form-item">
					<view class="form-item-label">选择银行卡</view>
					<picker @change="bankCardChange" :value="bankCardIndex" :range="bankCardList" range-key="card" class="item-picker">
							<view class="uni-input">{{bankCardList[bankCardIndex].card}}</view>
					</picker>
					<image class="item-img" src="../../static/images/arrow.png"></image>
				</view>
			</view>
		</view>
		<view class="submit-box">
			<view class="submit-btn">确定</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bankCardIndex: 0,
				bankCardList: [
					{id: 1, card: '6586********2561'},
					{id: 2, card: '6954********1478'}
				]
			}
		},
		
		methods: {
			
			bankCardChange(e) {
				this.bankCardIndex = e.target.value
			}
			
		}
	}
</script>

<style>
	page {
		background-color: #eeeeee;
		color: #333333;
	}
	
	.container {
		width: 750rpx;
		height: auto;
	}
	
	.withdraw-box {
		width: 750rpx;
		height: auto;
		background-color: #ffffff;
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 16rpx;
		padding-bottom: 60rpx;
	}
	
	.withdraw-title {
		font-size: 30rpx;
		margin-top: 30rpx;
		font-weight: bold;
	}
	
	.form-box {
		width: 650rpx;
		margin-top: 40rpx;
	}
	
	.form-item {
		width: 100%;
		height: 100rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		border-bottom: solid 2rpx #f5f5f5;
	}
	
	.form-item-label {
		font-size: 24rpx;
		color: #666666;
		width: 120rpx;
	}
	
	.item-input-box {
		width: 504rpx;
	}
	
	.item-input {
		color: #333333;
		font-size: 32rpx;
	}
	
	.item-picker {
		width: 460rpx;
	}
	
	.item-img {
		width: 20rpx;
		height: 20rpx;
	}
	
	.submit-box {
		width: 750rpx;
		display: flex;
		flex-direction: row;
		justify-content: center;
		margin-top: 60rpx;
	}
	
	.submit-btn {
		width: 630rpx;
		height: 72rpx;
		background-color: #5683ec;
		border-radius: 36rpx;
		font-size: 30rpx;
		color: #ffffff;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
</style>
